updating oE db_get_errors
Routines
db_get_errors
include eds.e namespace eds public function db_get_errors(integer clearing = 1)
fetches the most recent set of errors recorded by the library.
Parameters:
- clearing : if zero the set of errors is not reset, otherwise it will be cleared out. The default is to clear the set.
Returns:
A sequence, each element is a set of four fields.
- Error Code.
- Error Text.
- Name of library routine that recorded the error.
- Parameters passed to that routine.
Comments:
- A number of library routines can detect errors. If the routine is a function, it usually returns an error code. However, procedures that detect an error can not do that. Instead, they record the error details and you can query that after calling the library routine.
- Both functions and procedures that detect errors record the details in the Last Error Set, which is fetched by this function.
Example 1:
db_replace_data(recno, new_data) errs = db_get_errors() if length(errs) != 0 then display_errors(errs) abort(1) end if
Not Categorized, Please Help
|